package com.cloudkinto.service.sc;

import com.baomidou.mybatisplus.extension.service.IService;
import com.cloudkinto.common.web.PageResult;
import com.cloudkinto.common.web.SingleResult;
import com.cloudkinto.entity.ScOverRuleDo;
import com.cloudkinto.vo.sc.ScRuleAddReq;
import com.cloudkinto.vo.sc.ScRulePageRes;
import com.cloudkinto.vo.sc.ScRuleUpdateReq;
import com.cloudkinto.vo.sc.SurchargeTrialReq;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * service接口
 * </p>
 *
 * @author hua
 * @since 2024-11-05
 */
public interface ScOverRuleService extends IService<ScOverRuleDo> {

    SingleResult addInit();

    Object add(ScRuleAddReq req, Long userId, Long tenantId);

    SingleResult updateInit(Long id);

    Object update(ScRuleUpdateReq updateVo, Long userId, Long tenantId);

    int delete(Long id, Long userId, Long tenantId);

    Object detail(Long id);

    SingleResult pageInit();

    List<ScRulePageRes> getList(Map<String, String> map);

    PageResult getListPage(Map<String, String> map);

    boolean trial(SurchargeTrialReq req);
}
